<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
	<meta content="black" name="apple-mobile-web-app-status-bar-style"/>
	<meta content="telephone=no" name="format-detection"/>
<title>交易记录</title>
<link href="<%=path %>/css/stlye.css" rel="stylesheet" type="text/css" />
<script src="<%=path%>/js/jquery-1.11.0.min.js"></script>
<script src="<%=path%>/js/plugins/layer/layer.js"></script>	
<script type="text/javascript">
	$(function () {
		tradeLoadMore();
		var el = document.createElement("STYLE");
		var docEl = document.documentElement;
		var portrait = ((Math.min(docEl.clientWidth, docEl.clientHeight) / 320) * 10);
		var landscape = ((Math.max(docEl.clientWidth, docEl.clientHeight) / 568) * 17.75);
		el.innerHTML = "@media screen and (orientation:portrait) { html { font-size: " + portrait + "px!important; } }\n@media screen and (orientation:landscape) { html { font-size: " + landscape + "px!important; } }";
		docEl.firstElementChild.appendChild(el);		
	});
	
	function tradeLoadMore(){
		var pageNo=$("#trade_pageNo").val();
		$.ajax({
			url : "<%=path %>/check/trade/list",
			type : "get",
			dataType : "html",
			data :{
				pageNo:parseInt(pageNo)+1
			},
			success : function(data)
			{
				$("#trade_loading_more_div").replaceWith(data);
			},error:function(){
				layer.msg("服务器网络繁忙",{icon: 2});
			}
		});
	}
	
	function viewTradeInfo(tradeId){
		window.location.href="<%=path%>/check/trade/view/"+tradeId;
	}
</script>
</head>
<body style="background-color:#f5f5f5;">
<div class="shangpi_top">
    <p>我的订单</p>
</div>
<div id="trade_loading_more_div">
	<input type="hidden" id="trade_pageNo" value="0">
</div>
<jsp:include page="/views/html5/commons/footer.jsp"></jsp:include>
</body>
</html>
